Fix the log reopening by moving the code with all the races out of the signal
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 10 Nov 2005 15:20:27 +0000 (16:20 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Thu, 10 Nov 2005 15:20:27 +0000 (16:20 +0100)
commita22a20e2bbdea9788a355de7e4c01377b373fa02
treeebdf60766005653d7145fd1e1ce7091c9a319e17
parent4440e29b50c17a8ddb29af163cf9045d75216828
Fix the log reopening by moving the code with all the races out of the signal
handler and into the main loop.  The "self-pipe trick" is used to awaken the
select() call on SIGHUP.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xenstore/xenstored_core.c